<template>
  <div>
    <TypeNav></TypeNav>
    <ListContainer></ListContainer>
    <Recommend></Recommend>
    <Rank></Rank>
    <Like></Like>
    <Floor v-for=" floor in floorsList" :key="floor.id" :list="floor"></Floor>
    <Brand></Brand>
  </div>
</template>

<script>
import ListContainer from '@/views/Home/ListContainer'
import Recommend from '@/views/Home/Recommend'
import Rank from '@/views/Home/Rank'
import Like from '@/views/Home/Like'
import Floor from '@/views/Home/Floor'
import Brand from '@/views/Home/Brand'

import {mapActions, mapState} from 'vuex'
export default {
  components: {
    ListContainer,
    Recommend,
    Rank,
    Like,
    Floor,
    Brand
  },
  mounted(){
    // this.$store.dispatch('home/reqGetFloorsList')
    this.reqGetFloorsList()
  },
  methods:{
    ...mapActions('home', ['reqGetFloorsList']),
    ...mapActions('loginAndRegister', ['getUserInfo']),
  },
  computed:{
    ...mapState('home', ['floorsList'])
  }
}
</script>

<style>

</style>